package com.jgp.attachment.exception;

import com.jgp.common.exception.ErrorCode;

/**
 * 项目   parent
 * 作者   loufei
 * 时间   2018/4/30
 */
public enum DocErrorCode implements ErrorCode{
    CREATE_TEMP_FILE_FAILED("10001","创建临时文件失败"),
    LOCAL_STORAGE_OFF("10002","未开启本地存储"),
    UPLOAD_FAILED("10003","上传异常"),
    DIR_NOT_FOUND("10004","物理存储目录(或临时目录)未设定");
    private String code;
    private String msg;

    DocErrorCode(String code,String msg){
        this.code = code;
        this.msg = msg;
    }
    
    
    @Override
    public String getCode() {
        return code;
    }
    
    @Override
    public String getMsg() {
        return msg;
    }
}
